package Demo05.Recursion;

public class Demo02JieCheng {
    public static void main(String[] args) {
        int s = a(5);
        System.out.println(s);
    }

    private static int a(int n) {
        if(n == 1){
            return 1;
        }
        return n * a(n-1);
    }
}
